/**
 *
 */
package edu.zut.hb.software.base.domain;

import java.io.Serializable;
import java.util.List;



/**
 * @author Mie
 *
 */
public class BaseTreeEntity<T extends BaseTreeEntity<T,PK>,PK extends Serializable> extends BaseEntity<PK>{

	/**
	 *
	 */
	private static final long serialVersionUID = 7265095317028327654L;
	/*
	 * children
	 */
	List<T> children;
	/*
	 * parent uncertain type,use T instead
	 */
	T parent;
	/*
	 * text
	 */
	String text;

	public List<T> getChildren() {
		return children;
	}
	public void setChildren(List<T> children) {
		this.children = children;
	}
	public T getParent() {
		return parent;
	}
	public void setParent(T parent) {
		this.parent = parent;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}


}
